package com.lndsnx.jedis;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author lndsnx
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/12/8,0003 12:21
 */
@Slf4j
@SpringBootApplication
public class JedisApplication {

    public static void main(String[] args) throws UnknownHostException {
        ConfigurableApplicationContext application = SpringApplication.run(JedisApplication.class, args);
        log.info("项目启动成功!");
        Environment env = application.getEnvironment();
        log.info("项目地址 swagger 地址：	 http://{}:{}/doc.html", InetAddress.getLocalHost().getHostAddress(), env.getProperty("server.port"));
    }
}
